package com.dgut.common.service.impl;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dgut.common.mapper.UserMapper;
import com.dgut.common.model.entity.LoginUser;
import com.dgut.common.model.entity.User;
import com.dgut.common.service.UserService;

/**
 * @author huangyujia <huangyujia@kuaishou.com>
 * Created on 2024-06-17
 */
@Service
public class UserServiceImpl  extends ServiceImpl<UserMapper, User>
        implements UserService {
    @Override
    public User getByUserName(String userName) {
        return lambdaQuery()
                .eq(User::getUserName, userName)
                .one();
    }
}
